package com.smcdd.cdb.dbo.cdb_dbo.ui.utils;


/**
 * 防止按钮被重复点击
 */
public class CommonUtils {
    private static long lastClickTime;  
    public static boolean isFastDoubleClick() {  
        long time = System.currentTimeMillis();  
        long timeD = time - lastClickTime;  
        if ( 0 < timeD && timeD < 1000) {
            return true;     
        }     
        lastClickTime = time;     
        return false;     
    }  
} 